package com.dkm.ou.me.repository.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ou.me.domain.ResGrant;
import com.dkm.ou.me.persistence.dao.ResGrantQueryDao;
import com.dkm.ou.me.persistence.entity.ResGrantPo;
import com.dkm.ou.me.repository.ResGrantRepository;

/**
 * 对象功能:权限授予 Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:蔡东渠
 * 创建时间:2014-12-12 16:21:04
 */
@Repository
public class ResGrantRepositoryImpl extends AbstractRepository<String, ResGrantPo,ResGrant> implements ResGrantRepository{
	  
	@Resource
	private  ResGrantQueryDao resGrantQueryDao;

	public ResGrant newInstance() {
		ResGrantPo po = new ResGrantPo();
		ResGrant resGrant = SpringHelper.getBean(ResGrant.class);
		resGrant.setData(po);
		return resGrant;
	}

	public ResGrant newInstance(ResGrantPo po) {
		ResGrant resGrant = SpringHelper.getBean(ResGrant.class);
		resGrant.setData(po);
		return resGrant;
	} 
	
	@Override
	protected IQueryDao<String, ResGrantPo> getQueryDao() {
		return resGrantQueryDao;
	}
	
}
